﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DBComparer.DataAbstract;

namespace DBComparer
{
    public partial class TestForm : Form
    {
        public TestForm()
        {
            InitializeComponent();
        }

        private void btnRegex_Click(object sender, EventArgs e)
        {
            //Diff.Item[] f = Diff.DiffText(txtSource.Text, txtDest.Text, true, true, false);

            //foreach (Diff.Item item in f)
            //{
            //    MessageBox.Show(item.deletedA.ToString());
                
            //}


            MessageBox.Show(DataAbstract.LevenshteinDistance.Compute(txtSource.Text, txtDest.Text).ToString());


        }
    }
}
